﻿using CarAppDomain.Base;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CarAppDomain.CarParts.Entities
{
    [SugarTable("car_parts_vehicle_series", TableDescription = "配件车系表")]
    public class CarPartsVehicleSeriesEntity
    {
        public CarPartsVehicleSeriesEntity()
        {
            this.Id = Guid.NewGuid().ToString();
        }
        /// <summary>
        ///主键
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 36, IsPrimaryKey = true, IsIdentity = false, ColumnDescription = "主键")]
        public string? Id { get; set; }
        /// <summary>
        /// 配件Id
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 36, IsNullable = false, ColumnDescription = "配件Id")]
        public string? CarPartsId { get; set; }

        /// <summary>
        /// 车型表Id
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 36, IsNullable = false, ColumnDescription = "车系表Id")]
        public string? VehicleSeriesId { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(ColumnDataType = "int", IsNullable = false, ColumnDescription = "序号",DefaultValue ="0")]
        public int SerialNumber { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar", Length = 64, IsNullable = false, ColumnDescription = "创建人")]
        public string? CreateUser { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnDataType = "datetime", IsNullable = false, ColumnDescription = "创建时间")]
        public DateTime CreateTime { get; set; }
    }
}
